package GUI;

import java.awt.Dimension;
import java.awt.LayoutManager;

import javax.swing.JPanel;
import javax.swing.JTextArea;
import java.awt.Font;
import javax.swing.JTextField;
import javax.swing.JButton;
import javax.swing.JLabel;
import java.awt.Color;
import javax.swing.DropMode;
import javax.swing.SwingConstants;
import javax.swing.JScrollBar;
import javax.swing.JComboBox;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
/**
 * This class creates instance of ExtentionStageGui	
 * to display when needed 	
 * @author Nofar
 *
 */
public class ExtentionStageGui extends JPanel {
	
	private static final long serialVersionUID = 1L;
	private JTextField numDays;
	private JButton btnCancel;
	private JButton btnSubmit;
	private JTextField arguFiield;
	private JPanel panel;
	private JScrollBar scrollBar;
	/**
	 * the constructor
	 */
	public ExtentionStageGui() {
		this.setPreferredSize(new Dimension(443, 360));
		this.setLayout(null);
		numDays = new JTextField();
		btnCancel = new JButton("CANCEL");
		btnCancel.setFont(new Font("Arial", Font.PLAIN, 11));
		btnSubmit = new JButton("SUBMIT");
		btnSubmit.setFont(new Font("Arial", Font.PLAIN, 11));
		panel = new JPanel();
		scrollBar = new JScrollBar();
		initialize();
	}
	/**
	 * This method initializes ExtentionStageGui
	 */
	public void initialize(){
		
		numDays.setBounds(232, 62, 128, 26);
		add(numDays);
		numDays.setColumns(10);
		
		btnCancel.setBounds(28, 311, 80, 30);
		add(btnCancel);
		
		btnSubmit.setBounds(299, 312, 80, 29);
		add(btnSubmit);
		
		JLabel lblEnterNumberOf = new JLabel("Enter number of days to extend:");
		lblEnterNumberOf.setFont(new Font("Arial", Font.BOLD, 12));
		lblEnterNumberOf.setBounds(10, 62, 182, 29);
		add(lblEnterNumberOf);
		
		JLabel lblEnterYourArgument = new JLabel("Enter your argument:");
		lblEnterYourArgument.setFont(new Font("Arial", Font.BOLD, 12));
		lblEnterYourArgument.setBounds(10, 118, 128, 21);
		add(lblEnterYourArgument);
		
		JLabel lblExtentionStageWindow = new JLabel("EXTENTION STAGE WINDOW");
		lblExtentionStageWindow.setForeground(Color.BLUE);
		lblExtentionStageWindow.setFont(new Font("Arial", Font.BOLD, 17));
		lblExtentionStageWindow.setBounds(96, 11, 245, 40);
		add(lblExtentionStageWindow);
		
		panel.setBounds(28, 150, 351, 118);
		add(panel);
		panel.setLayout(null);
		
		scrollBar.setBounds(0, 0, 23, 121);
		panel.add(scrollBar);
		arguFiield = new JTextField();
		arguFiield.setBounds(25, 0, 326, 121);
		panel.add(arguFiield);
		arguFiield.setHorizontalAlignment(SwingConstants.LEFT);
		arguFiield.setColumns(10);
	}
		/*for(String name:Faculty.getFaculties()){
		//	req_id.addItem(name);
		}
		// TODO Auto-generated constructor stub
	}*/

	/**
	 * 
	 * @return the submit button
	 */
	public JButton getSubmitBott(){
		return btnSubmit;
	}
	/**
	 * 
	 * @return the cancel button
	 */
	public JButton getCancelBott(){
		return btnCancel;
	}
	
	/**
	 * 
	 * @return JTextField with number of days
	 */
	public JTextField getTextField_numDays(){
		return numDays;
	}
	
	/**
	 * 
	 * @return JTextField with arguments
	 */
	public JTextField getTextField_argu(){
		return arguFiield;
	}
}
